<template>
    <div>
        <button v-on:click="clickHandler('你好')">你好</button>
        <button v-on:click="clickHandler('再见')">再见</button>
    </div>
</template>

<script>
    export default {
        methods: {
            clickHandler(value) {
                this.$emit('button-event',value);
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>